package com.gxy.learn.design.model.construction.decorator;

/**
 * @description: 炒面 （具体的构建角色）
 * @author: gaoxueyong
 * @Date: 2022/11/7 19:24
 */
public class FiredNoodles extends FastFood{
    public FiredNoodles() {
        super(12,"炒面");
    }

    /**
     * 计算价格
     *
     * @return double
     * @Author gaoxueyong
     * @Date 7:21 下午 2022/11/7
     * @Param []
     **/
    @Override
    public double cost() {
        return getPrice();
    }
}
